package com.my.study.designPatterns.abstractFactoryPattern;

public class ChicagoIngedientFactory implements IngredientFactory {

    @Override
    public Dough createDough() {
        System.out.println("Chicago Dough");
        return new ChicagoDough();
    }

    @Override
    public Sauce createSauce() {
        System.out.println("Chicago Sauce");
        return new ChicagoSauce();
    }

    @Override
    public Vegetable[] createVegetables() {

        Vegetable[] vegetables = {new Tomato(), new Cabbage()};
        System.out.println("Chicago vegetables length " + vegetables.length);
        return vegetables;
    }
}
